#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtSql>
#include <QtGui/QMainWindow>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QComboBox>

#include <QFileDialog>
#include <QFileInfo>
#include <QObject>
#include <QSqlDriver>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QTableview>
#include <QSqlTableModel>

#include <QSqlQueryModel>
#include <QSqlRelationalTableModel>
#include <QMessageBox>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void tab();
    void tab2 ();
private slots:
    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_5_clicked();

private:
    QComboBox comboBox;

    QTableView view;
    QByteArray line;
    QSqlDatabase db;

    QMessageBox msgBox;
    //int result;


    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
